;; (use-package flutter
;;   :after dart-mode
;;   :bind (:map dart-mode-map
;;               ("s-r" . #'flutter-hot-reload))
;;   :custom
;;   (flutter-sdk-path "/Users/lionqu/flutter/"))

(use-package dart-mode
  :ensure t
  :hook (dart-mode . flutter-test-mode)
  :config
  (global-leader
    :major-modes
    '(dart-mode t)
    ;;and the keymaps:
    :keymaps
    '(dart-mode-map)
    "r" 'flutter-run-or-hot-reload)
  (define-key dart-mode-map (kbd "RET") 'av/auto-indent-method-maybe))

(provide 'init-dart)